package com.xwltz.rbac.model.response;

import com.xwltz.rbac.domain.DepartmentEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @description DepartmentResponse
 * @information on version 1.0 be created by @xwltz at 2022/6/17 11:00
 */

@Data
public class DepartmentResponse extends DepartmentEntity {

	@ApiModelProperty("父级部门名称")
	private String parentName;

	@ApiModelProperty("子级部门列表")
	private List<DepartmentEntity> children = new ArrayList<>();
}
